<include file="header" />
<div class="wraper" js="wapjs/meeting/js/choicedepartment">
    <div class="head clearfix">
        <a href="javascript:history.back(-1)" class="iconfont icon-zuo"></a>
        <span class="head-name">选择联系人</span>
    </div>
    <!-- <div class="search">
        <p class="tips-text text-gray text-center"><span class='iconfont icon-sousuo'></span>搜索名字、拼音、手机号</p>
        <input class="search-input" value=""/>
    </div> -->
    <div class="lists notopblock">
        <div class="tb-mode">
            <div class="tb-cell small-photo"><img src="/assets/meeting/images/school.jpg"/></div>
            <div class="tb-cell">浙江师范大学</div>
        </div>
    </div>
    <div class="lists">
        <div class="list-line" id="select-all">
            <span class="iconfont icon-xuanze"></span> 全选
        </div>
    </div>
    <div class="lists" id="select-box">
        <foreach name="department" item="vo">
            <div class="list-line">
                <span class="iconfont icon-xuanze checkbox" v="{BEESCRM:$vo.department_id}"></span> {BEESCRM:$vo.department_name}({BEESCRM:$vo.peopleCount})<a class="iconfont icon-you pull-right"
                <if condition="$vo.peopleCount eq 0">href="javascript:void(0);"</if>

                <if condition="$vo.peopleCount neq 0">
                    <if condition="$vo.hasChildDepartment eq 1">
                        href="{BEESCRM::U('/Meeting/MeetingInvite/choiceSecondDepartment',array('basic_id' => $basicId,'account_id' => $accountId,'department_id' => $vo['department_id'],'level'=>$level))}"
                    </if>
                    <if condition="$vo.hasChildDepartment eq 2">
                        href="{BEESCRM::U('/Meeting/MeetingInvite/choiceUser',array('basic_id' => $basicId,'account_id' => $accountId,'department_id' => $vo['department_id'],'level'=>$level))}"
                    </if>
                </if>></a>
            </div>
        </foreach>
    </div>
    <div class="fixed-total">
        <div class="tb-mode">
            <div class="tb-cell"></div>
            <input type="hidden" value="{BEESCRM:$edit}" id="edit">
            <div class="tb-cell"><a href="javascript:void(0)" class="btn pull-right bg-green">确定</a></div>
        </div>
    </div>
</div>

<script type="text/javascript" src="/assets/public/seajs/sea.js"></script>
<script enter="publicjs/public" id="confnode" async="async" src="/assets/public/config.js"></script>
<include file="footer" />